package com.yenlien.traceyun.usercenter.dao;


import com.yenlien.traceyun.usercenter.entity.DepartmentResource;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;

import java.util.List;

/**
 * Created by LiuSha on 2020/6/19.
 */
public interface DepartmentResourceDao extends BaseJpaDao<DepartmentResource> {
    DepartmentResource findById(String id);

    List<DepartmentResource> findByDepartmentId(String id);

    /**
     * 根据部门id删除
     *
     * @param departmentId
     */
    public void deleteByDepartmentId(String departmentId);

}
